﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NLBS.Entity;

namespace NLBS.Data.Interface
{
    public interface IWidgetService
    {
        #region widget

        /// <summary>
        /// 获取Widget列表
        /// </summary>
        /// <returns></returns>
         IList<Widget> GetWidget();

        /// <summary>
        /// 添加一个Widget
        /// </summary>
        /// <param name="widget"></param>
        /// <returns></returns>
         int InsertWidget(Widget widget);

        /// <summary>
        /// 更新Widget
        /// </summary>
        /// <param name="widget"></param>
        /// <returns></returns>
         int UpdateWidget(Widget widget);

        /// <summary>
        /// 删除一个Widget
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
         int DeleteWidget(int id);

        /// <summary>
        /// 获取一个Widget
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
         Widget GetWidgetDetail(int id);

        #endregion

    }
}
